<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/material_applyl.css"/>
	
	<script src="../../plugin/angular/angular.min.js"></script>
	<script src="../../basic/js/base.js"></script>
    <script src="../../models/admin/js/meterial_apply_sl.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script> 
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
	<div leftaside></div>
		<aside>
			<div class="top-bar"><a href="material_apply.html">一级指标管理</a><s class="arrowr"></s><span>二级指标管理</span></div>
			<div class="m-add" ng-controller="applySLMController">
				<div class="whole-cover" ng-hide="isAddM"></div>
				<div class="add-form" ng-hide="isAddM">
					<div><p>添加二级指标</p></div>
					<div><span>二级指标序号</span><input type="number" ng-model="addFZNum" placeholder="填入数字" title="二级指标会按此数字排序"/></div>
					<div><span>二级指标标题</span><input type="text" ng-model="addFZ" placeholder="请输入二级指标标题"/></div>
					<div>
						<span>指标所属专业</span>
						<input type="radio" ng-model="zbMajor" name="choosemajor" checked value="0"/><b>学前</b>
						<input type="radio" ng-model="zbMajor" name="choosemajor"  value="1"/><b>小学</b>
						<input type="radio" ng-model="zbMajor" name="choosemajor"  value="2"/><b>中学</b>
					</div>
					<div><span>二级指标标准</span><textarea ng-model="addBZ" placeholder="请输入二级指标标准"></textarea></div>
					<div><div ng-click="addFirstZ()">确认</div><div ng-click="cancelAddM()">取消</div></div>
				</div>
				<!--编辑-->
				<div class="add-form" ng-show="showEdit">
					<div><p>编辑二级指标</p></div>
					<div><span>二级指标序号</span><input type="text" ng-model="item.number" placeholder="填入数字" title="二级指标会按此数字排序"/></div>
					<div><span>二级指标标题</span><input type="text" ng-model="item.content" placeholder="请输入二级指标标题"/></div>
					<div>
						<span>指标所属专业</span>
						<input type="radio"  name="major" ng-model="item.major" value="0"/><b>学前</b>
						<input type="radio"  name="major" ng-model="item.major" value="1"/><b>小学</b>
						<input type="radio"  name="major" ng-model="item.major" value="2"/><b>中学</b>
					</div>
					<div>
						<span>二级指标标准</span><textarea ng-model="item.standards" placeholder="请输入二级指标标准"></textarea>
					</div>
					<div>
						<div ng-click="doEdit(item)">确认</div>
						<div ng-click="doCancel()">取消</div>
					</div>
				</div>
				<div class="add-apply" ng-click="addM()">添加二级指标</div>
				<div class="list-content">
					<div>
						<div class="cooleList title">
							<i>编号</i>
							<span class="sl">二级指标标题</span>
							<span  class="sl">专业</span>
							<span class="sl">标准</span>
							<div class="action">操作</div>
						</div>
					</div>
					<div ng-repeat="arraylist in list">
						<div class="cooleList">
							<i>{{preNum+"."+arraylist.number}}</i>
							<span title="{{arraylist.content}}" class="sl">{{arraylist.content}}</span>
							<span class="sl">{{arraylist.majorName}}</span>
							<span title="{{arraylist.standards}}" class="sl">{{arraylist.standards}}</span>
							<div class="btn" ng-click="edit(arraylist)" style="width: 45px">编辑</div>
							<div class="btn" ng-click="delCollect(arraylist.pid)" style="width: 45px">删除</div>
							<div class="btn" ng-click="turnTo(arraylist.pid,arraylist.major,preNum+'.'+arraylist.number)">查看细则</div>
						</div>
					</div>
					<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
					<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
						暂无相关数据
					</div> 
				</div>
				<section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
					<pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
				</section>
			</div>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
